<?php

namespace app\controllers\admin;

use api\models\custom\Identity;
use app\models\User;
use app\models\UserLog;
use Yii;
use yii\base\Exception;
use yii\base\UserException;
use yii\helpers\Json;
use yii\web\Controller;
use yii\web\Response;

class BaseController extends \app\controllers\BaseController {
    public function beforeAction($action) {
        return parent::beforeAction($action) && $this->check([User::ROLE_ADMIN]);
    }
}
